<!doctype html>
<title>Test reference</title>
<div>
  Foo
  <div></div>
  Bar
</div>
